package com.zhijian.medical.entity.vo.response;

import com.zhijian.medical.entity.po.RoutineSingleSampleYz;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoutineSingleSampleYzVo extends RoutineSingleSampleYz {

    @ApiModelProperty("医嘱类型名称")
    public String getYzTypeStr(){
        if (super.getYzType() != null){
            if (super.getYzType() == 3){
                return "免疫组化";
            }else if (super.getYzType() == 4){
                return "特殊染色";
            }
        }
        return "";
    }

    @ApiModelProperty("医嘱状态名称")
    public String getYzStateStr(){
        if (super.getYzState() != null){
            if (super.getYzState() == 0){
                return "未执行";
            }else if (super.getYzState() == 1){
                return "已执行";
            }else if (super.getYzState() == 2){
                return "暂停";
            }
        }
        return "";
    }

    @ApiModelProperty("病理号")
    private String blNo;

    @ApiModelProperty("病人名称")
    private String patientName;

    @ApiModelProperty("蜡块号")
    private String number;

    @ApiModelProperty("取块数")
    private String takeNumber;
}
